package com.houweishi.module.adjustment.domain;

import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.math.BigDecimal;

/**
 * 职位，薪资申请单对象 oa_adjustment
 * 
 * @author houweishi
 * @date 2023-02-21
 */
@Data
public class OaAdjustmentApproval extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long adjustmentId;

    /** 用户id */
    private Long userId;

    /** 用户名(申请人姓名） */
    @Excel(name = "用户名(申请人姓名）")
    private String username;

    /** 部门id */
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 现职位id */
    private Long postId;

    /** 现职位 */
    @Excel(name = "现职位")
    private String position;

    /** 员工id */
    private Long staffId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String staffName;

    /** 目标职位id */
    private Long targetPostId;

    /** 目标职位 */
    @Excel(name = "目标职位")
    private String targetPosition;

    /** 目标薪资 */
    @Excel(name = "目标薪资")
    private BigDecimal targetSalary;

    /** 申请理由 */
    @Excel(name = "申请理由")
    private String applicationReason;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 所属租户 */
    private Long tenantId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 是否使用模板（1是 2否） */
    @Excel(name = "是否使用模板")
    private String typeStatus;

    /** 模板id */
    private Long typeId;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String typeName;

    /** 审批人id(多个） */
    private String approver;

    /** 审批人姓名(多个） */
    private String approverName;

    /** 申请表类型id */
    private Long subscribePatternId;

    /** 申请表类型名称 */
    @Excel(name = "申请表类型名称")
    private String subscribePatternName;

    /** 抄送人id */
//    @Excel(name = "抄送人id")
    private String copyerId;

    /** 抄送人姓名 */
    @Excel(name = "抄送人姓名")
    private String copyerName;

    /** 流水单号 */
    @Excel(name = "流水单号")
    private String serialNum;

    @Excel(name = "业务表审批记录状态")
    private String businessStatus;


    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("adjustmentId", adjustmentId)
                .append("userId", userId)
                .append("username", username)
                .append("deptId", deptId)
                .append("deptName", deptName)
                .append("postId", postId)
                .append("position", position)
                .append("staffId", staffId)
                .append("staffName", staffName)
                .append("targetPostId", targetPostId)
                .append("targetPosition", targetPosition)
                .append("targetSalary", targetSalary)
                .append("applicationReason", applicationReason)
                .append("status", status)
                .append("tenantId", tenantId)
                .append("delFlag", delFlag)
                .append("typeStatus", typeStatus)
                .append("typeId", typeId)
                .append("typeName", typeName)
                .append("approver", approver)
                .append("approverName", approverName)
                .append("subscribePatternId", subscribePatternId)
                .append("subscribePatternName", subscribePatternName)
                .append("copyerId", copyerId)
                .append("copyerName", copyerName)
                .append("serialNum", serialNum)
                .append("businessStatus", businessStatus)
                .toString();
    }
}
